import request from '@/utils/request'

// 查询文章生成列表
export function listGenArticle(query) {
  return request({
    url: '/article/genArticle/list',
    method: 'get',
    params: query
  })
}

// 查询文章生成详细
export function getGenArticle(id) {
  return request({
    url: '/article/genArticle/' + id,
    method: 'get'
  })
}

// 新增文章生成
export function addGenArticle(data) {
  return request({
    url: '/article/genArticle',
    method: 'post',
    data: data
  })
}

// 修改文章生成
export function updateGenArticle(data) {
  return request({
    url: '/article/genArticle',
    method: 'put',
    data: data
  })
}

// 删除文章生成
export function delGenArticle(id) {
  return request({
    url: '/article/genArticle/' + id,
    method: 'delete'
  })
}
